.class public Lcom/tecace/tetheringprovision/TetheringProvisionActivity;
.super Landroid/app/Activity;
.source "TetheringProvisionActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;,
        Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowNotificationDialogATT;,
        Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;
    }
.end annotation


# static fields
.field private static final APN_ATT:Ljava/lang/String; = "pta"

.field private static final APN_TABLE_URI:Ljava/lang/String; = "content://telephony/carriers"

.field private static final APN_TYPE_CBS:Ljava/lang/String; = "default,supl,mms"

.field private static final AUTHENTICATIONTIMEDELAY:I = 0xbb8

.field private static final CBSONSTRING:Ljava/lang/String; = "enableCBS"

.field private static final DO_VERIFYING_ON_BACKGROUND:Z = false

.field private static final GETSALESCODE:Ljava/lang/String; = "getprop ril.sales_code"

.field private static final GETTETHERINGPROPERTY:Ljava/lang/String; = "getprop TetheringManager.disable"

.field public static final INTENTFILTERCLOSENOTIDIALOG:Ljava/lang/String; = "com.tecace.tetheringprovision.action.closenotidialog"

.field public static final INTENTFILTERCLOSEVFDIALOG:Ljava/lang/String; = "com.tecace.tetheringprovision.action.closevfdialog"

.field private static final MAXVERIFICATIONTRIALMPDP:I = 0x32

.field private static final MCCMNC_ATT:[Ljava/lang/String; = null

.field private static final MCCMNC_FACTORY:Ljava/lang/String; = "000101"

.field private static final MCCMNC_NULL:Ljava/lang/String; = "000000"

.field private static final MCCMNC_UNKNOWN:Ljava/lang/String; = "Unknown or no SIM card"

.field private static final OPERATOR_ATT:I = 0x1

.field private static final OPERATOR_BASE_CODE:I = 0x0

.field private static final OPERATOR_NONE:I = 0x0

.field private static final SALESCODEATT:Ljava/lang/String; = "ATT"

.field private static final SERVICE_IS_NOT_AVAILABLE:I = 0x1

.field private static final SHOW_DETAILED_TETHER_TYPE:Z = true

.field private static final TAG:Ljava/lang/String; = "TetheringProvision"

.field private static final TETHERINGATT:Ljava/lang/String; = "AT&T PTA"

.field private static final TetheringProvisionActivityName:Ljava/lang/String; = "TetheringProvisionActivity"

.field private static final UNIQUE_ID_FOR_NOTIFICATION:I = 0x7cf2eaa4

.field private static final USE_THRU_WIFI:Z = true

.field private static mCancelVerification:Z

.field private static mNM:Landroid/app/NotificationManager;

.field private static pm:Landroid/os/PowerManager;


# instance fields
.field private mAPNtype:Ljava/lang/String;

.field private mAuthenticating:Z

.field private mAuthenticationHandler:Landroid/os/Handler;

.field private mCBSConnectionFail:I

.field private mCheckMultiPDPAuthenticationThread:Ljava/lang/Runnable;

.field private mConnectivityManager:Landroid/net/ConnectivityManager;

.field private mContentResolver:Landroid/content/ContentResolver;

.field private mDetectedFactorySIM:Z

.field private mDetectedTetheringAlwaysOn:Z

.field private mGetTetherType:I

.field private mOperatorCode:I

.field private mProviderDetectHandler:Landroid/os/Handler;

.field private mProviderDetectThread:Ljava/lang/Runnable;

.field private mResultCode:I

.field private mRunAuthenticationThread:Z

.field private mRunProviderDetectThread:Z

.field private mSimOperator:Ljava/lang/String;

.field private mStartCause:I

.field private mTelephonyManager:Landroid/telephony/TelephonyManager;

.field private mTetheringAPN:Ljava/lang/String;

.field private mTetheringName:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 104
    const/16 v0, 0xa

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "310070"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "310090"

    aput-object v2, v0, v1

    const/4 v1, 0x2

    const-string v2, "310150"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    const-string v2, "310170"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string v2, "310180"

    aput-object v2, v0, v1

    const/4 v1, 0x5

    const-string v2, "310380"

    aput-object v2, v0, v1

    const/4 v1, 0x6

    const-string v2, "310410"

    aput-object v2, v0, v1

    const/4 v1, 0x7

    const-string v2, "310560"

    aput-object v2, v0, v1

    const/16 v1, 0x8

    const-string v2, "310980"

    aput-object v2, v0, v1

    const/16 v1, 0x9

    const-string v2, "311180"

    aput-object v2, v0, v1

    sput-object v0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->MCCMNC_ATT:[Ljava/lang/String;

    .line 82
    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 82
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 87
    iput-boolean v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mDetectedTetheringAlwaysOn:Z

    .line 88
    iput-boolean v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mDetectedFactorySIM:Z

    .line 134
    iput v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mOperatorCode:I

    .line 136
    iput v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    .line 137
    const/4 v0, -0x1

    iput v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mStartCause:I

    .line 139
    iput-boolean v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mRunProviderDetectThread:Z

    .line 140
    iput-boolean v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mRunAuthenticationThread:Z

    .line 142
    iput v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mResultCode:I

    .line 144
    iput-boolean v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mAuthenticating:Z

    .line 518
    new-instance v0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$1;

    invoke-direct {v0, p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$1;-><init>(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)V

    iput-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mProviderDetectHandler:Landroid/os/Handler;

    .line 527
    new-instance v0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;

    invoke-direct {v0, p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;-><init>(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)V

    iput-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mProviderDetectThread:Ljava/lang/Runnable;

    .line 557
    new-instance v0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$3;

    invoke-direct {v0, p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$3;-><init>(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)V

    iput-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mAuthenticationHandler:Landroid/os/Handler;

    .line 565
    new-instance v0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$4;

    invoke-direct {v0, p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$4;-><init>(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)V

    iput-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mCheckMultiPDPAuthenticationThread:Ljava/lang/Runnable;

    .line 82
    return-void
.end method

.method private CheckProvider()Z
    .locals 9

    .prologue
    const v8, 0x7f030015

    const/4 v2, 0x0

    const/4 v3, 0x1

    .line 445
    const-string v4, "getprop ril.sales_code"

    invoke-direct {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->execCommand(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v4

    const/4 v5, 0x2

    if-le v4, v5, :cond_0

    .line 446
    const-string v4, "TetheringProvision"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "Provider is "

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, "getprop ril.sales_code"

    invoke-direct {p0, v6}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->execCommand(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 447
    :cond_0
    const-string v4, "getprop ril.sales_code"

    invoke-direct {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->execCommand(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "ATT"

    invoke-virtual {v4, v5}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v4

    if-nez v4, :cond_6

    .line 448
    const-string v4, "AT&T PTA"

    iput-object v4, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTetheringName:Ljava/lang/String;

    .line 449
    const-string v4, "pta"

    iput-object v4, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTetheringAPN:Ljava/lang/String;

    .line 450
    const-string v4, "default,supl,mms"

    iput-object v4, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mAPNtype:Ljava/lang/String;

    .line 452
    invoke-direct {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->CheckSIM()Ljava/lang/String;

    move-result-object v4

    const-string v5, "Unknown or no SIM card"

    invoke-virtual {v4, v5}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v4

    if-eqz v4, :cond_5

    .line 453
    new-instance v4, Ljava/lang/String;

    invoke-direct {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->CheckSIM()Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v4, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mSimOperator:Ljava/lang/String;

    .line 454
    sget-object v5, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->MCCMNC_ATT:[Ljava/lang/String;

    array-length v6, v5

    move v4, v2

    :goto_0
    if-lt v4, v6, :cond_1

    .line 460
    :goto_1
    iget v4, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mOperatorCode:I

    if-ne v4, v3, :cond_3

    .line 461
    const-string v2, "TetheringProvision"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "MCCMNC is "

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v5, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mSimOperator:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    :goto_2
    move v2, v3

    .line 499
    :goto_3
    return v2

    .line 454
    :cond_1
    aget-object v0, v5, v4

    .line 455
    .local v0, SIMOperator:Ljava/lang/String;
    iget-object v7, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mSimOperator:Ljava/lang/String;

    invoke-virtual {v7, v0}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v7

    if-nez v7, :cond_2

    .line 456
    iput v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mOperatorCode:I

    goto :goto_1

    .line 454
    :cond_2
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 462
    .end local v0           #SIMOperator:Ljava/lang/String;
    :cond_3
    iget-object v4, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mSimOperator:Ljava/lang/String;

    const-string v5, "000101"

    invoke-virtual {v4, v5}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v4

    if-nez v4, :cond_4

    iget-boolean v4, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mDetectedTetheringAlwaysOn:Z

    if-eqz v4, :cond_4

    .line 463
    const-string v4, "TetheringProvision"

    const-string v5, "Factory SIM detected"

    invoke-static {v4, v5}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 464
    iput-boolean v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mDetectedFactorySIM:Z

    goto :goto_3

    .line 467
    :cond_4
    const-string v4, "TetheringProvision"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "No valid AT&T MCC/MNC("

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v6, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mSimOperator:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ") found"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 468
    invoke-virtual {p0, v8}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 469
    .local v1, text:Ljava/lang/CharSequence;
    invoke-static {p0, v1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto :goto_3

    .line 473
    .end local v1           #text:Ljava/lang/CharSequence;
    :cond_5
    const-string v3, "TetheringProvision"

    const-string v4, "There is valid sales code but no SIM"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_3

    .line 476
    :cond_6
    invoke-direct {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->CheckSIM()Ljava/lang/String;

    move-result-object v4

    const-string v5, "Unknown or no SIM card"

    invoke-virtual {v4, v5}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v4

    if-eqz v4, :cond_a

    .line 477
    new-instance v4, Ljava/lang/String;

    invoke-direct {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->CheckSIM()Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    iput-object v4, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mSimOperator:Ljava/lang/String;

    .line 478
    sget-object v5, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->MCCMNC_ATT:[Ljava/lang/String;

    array-length v6, v5

    move v4, v2

    :goto_4
    if-lt v4, v6, :cond_7

    .line 484
    :goto_5
    iget v4, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mOperatorCode:I

    if-ne v4, v3, :cond_9

    .line 485
    const-string v2, "AT&T PTA"

    iput-object v2, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTetheringName:Ljava/lang/String;

    .line 486
    const-string v2, "pta"

    iput-object v2, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTetheringAPN:Ljava/lang/String;

    .line 487
    const-string v2, "default,supl,mms"

    iput-object v2, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mAPNtype:Ljava/lang/String;

    .line 488
    const-string v2, "TetheringProvision"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "Provider is ATT which is determined by MCCMNC("

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v5, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mSimOperator:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, ")"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_2

    .line 478
    :cond_7
    aget-object v0, v5, v4

    .line 479
    .restart local v0       #SIMOperator:Ljava/lang/String;
    iget-object v7, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mSimOperator:Ljava/lang/String;

    invoke-virtual {v7, v0}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v7

    if-nez v7, :cond_8

    .line 480
    iput v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mOperatorCode:I

    goto :goto_5

    .line 478
    :cond_8
    add-int/lit8 v4, v4, 0x1

    goto :goto_4

    .line 490
    .end local v0           #SIMOperator:Ljava/lang/String;
    :cond_9
    const-string v4, "TetheringProvision"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "There is no sales code or valid MCCMNC("

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v6, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mSimOperator:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ")"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 491
    invoke-virtual {p0, v8}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 492
    .restart local v1       #text:Ljava/lang/CharSequence;
    invoke-static {p0, v1, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto/16 :goto_3

    .line 496
    .end local v1           #text:Ljava/lang/CharSequence;
    :cond_a
    const-string v3, "TetheringProvision"

    const-string v4, "There is no valid sales code and no SIM"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_3
.end method

.method private CheckSIM()Ljava/lang/String;
    .locals 4

    .prologue
    .line 503
    iget-object v2, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTelephonyManager:Landroid/telephony/TelephonyManager;

    invoke-virtual {v2}, Landroid/telephony/TelephonyManager;->getSimOperator()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    const/4 v3, 0x4

    if-le v2, v3, :cond_3

    iget-object v2, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTelephonyManager:Landroid/telephony/TelephonyManager;

    invoke-virtual {v2}, Landroid/telephony/TelephonyManager;->getSimOperator()Ljava/lang/String;

    move-result-object v2

    const-string v3, "0"

    invoke-virtual {v2, v3}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v2

    if-eqz v2, :cond_3

    iget-object v2, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTelephonyManager:Landroid/telephony/TelephonyManager;

    invoke-virtual {v2}, Landroid/telephony/TelephonyManager;->getSimOperator()Ljava/lang/String;

    move-result-object v2

    const-string v3, "000000"

    invoke-virtual {v2, v3}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v2

    if-eqz v2, :cond_3

    .line 504
    iget-object v2, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTelephonyManager:Landroid/telephony/TelephonyManager;

    invoke-virtual {v2}, Landroid/telephony/TelephonyManager;->getSimOperator()Ljava/lang/String;

    move-result-object v0

    .line 505
    .local v0, SimOperator:Ljava/lang/String;
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v2

    const/4 v3, 0x6

    if-eq v2, v3, :cond_0

    .line 506
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v2

    rsub-int/lit8 v1, v2, 0x6

    .local v1, i:I
    :goto_0
    if-nez v1, :cond_2

    .line 510
    .end local v1           #i:I
    :cond_0
    const-string v2, "000000"

    invoke-virtual {v0, v2}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v2

    if-nez v2, :cond_1

    .line 511
    const-string v0, "Unknown or no SIM card"

    .line 514
    .end local v0           #SimOperator:Ljava/lang/String;
    :cond_1
    :goto_1
    return-object v0

    .line 507
    .restart local v0       #SimOperator:Ljava/lang/String;
    .restart local v1       #i:I
    :cond_2
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "0"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 506
    add-int/lit8 v1, v1, -0x1

    goto :goto_0

    .line 514
    .end local v0           #SimOperator:Ljava/lang/String;
    .end local v1           #i:I
    :cond_3
    const-string v0, "Unknown or no SIM card"

    goto :goto_1
.end method

.method private GetTopActivitiyName()Ljava/lang/String;
    .locals 7

    .prologue
    .line 1044
    const-string v4, "TetheringProvision"

    const-string v5, "GetTopActivityName()"

    invoke-static {v4, v5}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 1045
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    const-string v5, "activity"

    invoke-virtual {v4, v5}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/ActivityManager;

    .line 1047
    .local v0, activityapp:Landroid/app/ActivityManager;
    const/4 v4, 0x1

    invoke-virtual {v0, v4}, Landroid/app/ActivityManager;->getRunningTasks(I)Ljava/util/List;

    move-result-object v2

    .line 1049
    .local v2, task:Ljava/util/List;,"Ljava/util/List<Landroid/app/ActivityManager$RunningTaskInfo;>;"
    const/4 v4, 0x0

    invoke-interface {v2, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/app/ActivityManager$RunningTaskInfo;

    iget-object v3, v4, Landroid/app/ActivityManager$RunningTaskInfo;->topActivity:Landroid/content/ComponentName;

    .line 1050
    .local v3, topActivity:Landroid/content/ComponentName;
    invoke-virtual {v3}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;

    move-result-object v1

    .line 1052
    .local v1, strTopActivity:Ljava/lang/String;
    const-string v4, "TetheringProvision"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "GetTopActivityName() get TopActivityClassName : "

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 1053
    return-object v1
.end method

.method private InsertEntitledAPN()I
    .locals 12

    .prologue
    const/4 v11, 0x3

    .line 642
    const/4 v8, -0x1

    .line 643
    .local v8, id:I
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 644
    .local v0, resolver:Landroid/content/ContentResolver;
    new-instance v10, Landroid/content/ContentValues;

    invoke-direct {v10}, Landroid/content/ContentValues;-><init>()V

    .line 645
    .local v10, values:Landroid/content/ContentValues;
    const-string v2, "name"

    iget-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTetheringName:Ljava/lang/String;

    invoke-virtual {v10, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 646
    const-string v2, "apn"

    iget-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTetheringAPN:Ljava/lang/String;

    invoke-virtual {v10, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 647
    const-string v2, "mcc"

    new-instance v3, Ljava/lang/String;

    iget-object v4, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mSimOperator:Ljava/lang/String;

    const/4 v5, 0x0

    invoke-virtual {v4, v5, v11}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 648
    const-string v2, "mnc"

    iget-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mSimOperator:Ljava/lang/String;

    invoke-virtual {v3, v11}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v10, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 649
    const-string v2, "numeric"

    iget-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mSimOperator:Ljava/lang/String;

    invoke-virtual {v10, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 650
    const-string v2, "type"

    iget-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mAPNtype:Ljava/lang/String;

    invoke-virtual {v10, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 651
    const/4 v6, 0x0

    .line 653
    .local v6, c:Landroid/database/Cursor;
    :try_start_0
    const-string v2, "content://telephony/carriers"

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v0, v2, v10}, Landroid/content/ContentResolver;->insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;

    move-result-object v1

    .line 654
    .local v1, newRow:Landroid/net/Uri;
    if-eqz v1, :cond_0

    .line 655
    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/4 v5, 0x0

    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    .line 656
    const-string v2, "TetheringProvision"

    const-string v3, "Newly added APN:"

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 657
    invoke-direct {p0, v6}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->printAllData(Landroid/database/Cursor;)Ljava/lang/String;

    .line 660
    const-string v2, "_id"

    invoke-interface {v6, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v9

    .line 661
    .local v9, idindex:I
    invoke-interface {v6}, Landroid/database/Cursor;->moveToFirst()Z

    .line 662
    invoke-interface {v6, v9}, Landroid/database/Cursor;->getShort(I)S

    move-result v8

    .line 663
    invoke-interface {v6}, Landroid/database/Cursor;->close()V

    .line 664
    const-string v2, "TetheringProvision"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "New ID: "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ": Inserting new APN succeeded!"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 671
    .end local v1           #newRow:Landroid/net/Uri;
    .end local v9           #idindex:I
    :goto_0
    return v8

    .line 666
    .restart local v1       #newRow:Landroid/net/Uri;
    :cond_0
    const-string v2, "TetheringProvision"

    const-string v3, "Inserting new APN failed!"

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catch Landroid/database/SQLException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 668
    .end local v1           #newRow:Landroid/net/Uri;
    :catch_0
    move-exception v7

    .line 669
    .local v7, e:Landroid/database/SQLException;
    const-string v2, "TetheringProvision"

    invoke-virtual {v7}, Landroid/database/SQLException;->getMessage()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method

.method private PingEntitledAPN()Z
    .locals 15

    .prologue
    const/4 v4, 0x0

    const/4 v14, 0x3

    const/4 v13, 0x2

    const/4 v11, 0x1

    const/4 v12, 0x0

    .line 676
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    .line 677
    .local v0, resolver:Landroid/content/ContentResolver;
    const-string v1, "content://telephony/carriers"

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    const/4 v2, 0x4

    new-array v2, v2, [Ljava/lang/String;

    const-string v3, "_id"

    aput-object v3, v2, v12

    const-string v3, "apn"

    aput-object v3, v2, v11

    const-string v3, "numeric"

    aput-object v3, v2, v13

    const-string v3, "type"

    aput-object v3, v2, v14

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v5, "apn = \'"

    invoke-direct {v3, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v5, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTetheringAPN:Ljava/lang/String;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v5, "\'"

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    move-object v5, v4

    invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    .line 678
    .local v6, c:Landroid/database/Cursor;
    if-eqz v6, :cond_3

    .line 679
    invoke-interface {v6}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v1

    if-eqz v1, :cond_2

    .line 681
    :cond_0
    invoke-interface {v6, v12}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 682
    .local v7, columnNames:Ljava/lang/String;
    invoke-interface {v6, v11}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    .line 683
    .local v8, columnNames1:Ljava/lang/String;
    invoke-interface {v6, v13}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    .line 684
    .local v9, columnNames2:Ljava/lang/String;
    invoke-interface {v6, v14}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v10

    .line 685
    .local v10, columnNames3:Ljava/lang/String;
    const-string v1, "TetheringProvision"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Stored entitled ID is "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 686
    const-string v1, "TetheringProvision"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Stored entitled APN is "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 687
    const-string v1, "TetheringProvision"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Stored entitled MCC/MNC is "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 688
    const-string v1, "TetheringProvision"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Stored entitled APN type is "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 689
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mSimOperator:Ljava/lang/String;

    invoke-virtual {v9, v1}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mAPNtype:Ljava/lang/String;

    invoke-virtual {v10, v1}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v1

    if-nez v1, :cond_1

    .line 690
    invoke-interface {v6}, Landroid/database/Cursor;->close()V

    .line 691
    const-string v1, "TetheringProvision"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Stored entitled APN ID("

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ") is verified"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    move v1, v11

    .line 699
    .end local v7           #columnNames:Ljava/lang/String;
    .end local v8           #columnNames1:Ljava/lang/String;
    .end local v9           #columnNames2:Ljava/lang/String;
    .end local v10           #columnNames3:Ljava/lang/String;
    :goto_0
    return v1

    .line 694
    .restart local v7       #columnNames:Ljava/lang/String;
    .restart local v8       #columnNames1:Ljava/lang/String;
    .restart local v9       #columnNames2:Ljava/lang/String;
    .restart local v10       #columnNames3:Ljava/lang/String;
    :cond_1
    invoke-interface {v6}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    .line 680
    if-nez v1, :cond_0

    .line 696
    .end local v7           #columnNames:Ljava/lang/String;
    .end local v8           #columnNames1:Ljava/lang/String;
    .end local v9           #columnNames2:Ljava/lang/String;
    .end local v10           #columnNames3:Ljava/lang/String;
    :cond_2
    invoke-interface {v6}, Landroid/database/Cursor;->close()V

    .line 698
    :cond_3
    const-string v1, "TetheringProvision"

    const-string v2, "No stored entitled APN is found"

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    move v1, v12

    .line 699
    goto :goto_0
.end method

.method private ShowDestroyNoti()V
    .locals 2

    .prologue
    .line 389
    const-string v0, "The current tethering authentication has been canceled."

    const/4 v1, 0x1

    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 390
    return-void
.end method

.method static synthetic access$0(Z)V
    .locals 0
    .parameter

    .prologue
    .line 121
    sput-boolean p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mCancelVerification:Z

    return-void
.end method

.method static synthetic access$1(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 139
    iput-boolean p1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mRunProviderDetectThread:Z

    return-void
.end method

.method static synthetic access$10(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)Landroid/net/ConnectivityManager;
    .locals 1
    .parameter

    .prologue
    .line 117
    iget-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mConnectivityManager:Landroid/net/ConnectivityManager;

    return-object v0
.end method

.method static synthetic access$11(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 557
    iget-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mAuthenticationHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$12(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 140
    iput-boolean p1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mRunAuthenticationThread:Z

    return-void
.end method

.method static synthetic access$13()Landroid/app/NotificationManager;
    .locals 1

    .prologue
    .line 146
    sget-object v0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mNM:Landroid/app/NotificationManager;

    return-object v0
.end method

.method static synthetic access$14(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)Ljava/lang/Runnable;
    .locals 1
    .parameter

    .prologue
    .line 565
    iget-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mCheckMultiPDPAuthenticationThread:Ljava/lang/Runnable;

    return-object v0
.end method

.method static synthetic access$15()Z
    .locals 1

    .prologue
    .line 121
    sget-boolean v0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mCancelVerification:Z

    return v0
.end method

.method static synthetic access$16(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 940
    invoke-direct {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->showRollingNotificationATT()V

    return-void
.end method

.method static synthetic access$17(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)I
    .locals 1
    .parameter

    .prologue
    .line 123
    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mCBSConnectionFail:I

    return v0
.end method

.method static synthetic access$18(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 123
    iput p1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mCBSConnectionFail:I

    return-void
.end method

.method static synthetic access$19()Landroid/os/PowerManager;
    .locals 1

    .prologue
    .line 151
    sget-object v0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->pm:Landroid/os/PowerManager;

    return-object v0
.end method

.method static synthetic access$2(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 144
    iput-boolean p1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mAuthenticating:Z

    return-void
.end method

.method static synthetic access$3(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 518
    iget-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mProviderDetectHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$4(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)Ljava/lang/Runnable;
    .locals 1
    .parameter

    .prologue
    .line 527
    iget-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mProviderDetectThread:Ljava/lang/Runnable;

    return-object v0
.end method

.method static synthetic access$5(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)Z
    .locals 1
    .parameter

    .prologue
    .line 444
    invoke-direct {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->CheckProvider()Z

    move-result v0

    return v0
.end method

.method static synthetic access$6(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)Z
    .locals 1
    .parameter

    .prologue
    .line 88
    iget-boolean v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mDetectedFactorySIM:Z

    return v0
.end method

.method static synthetic access$7(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 414
    invoke-direct {p0, p1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->sendResult(I)V

    return-void
.end method

.method static synthetic access$8(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)Z
    .locals 1
    .parameter

    .prologue
    .line 674
    invoke-direct {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->PingEntitledAPN()Z

    move-result v0

    return v0
.end method

.method static synthetic access$9(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)I
    .locals 1
    .parameter

    .prologue
    .line 641
    invoke-direct {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->InsertEntitledAPN()I

    move-result v0

    return v0
.end method

.method private execCommand(Ljava/lang/String;)Ljava/lang/String;
    .locals 6
    .parameter "Parameter"

    .prologue
    .line 422
    const/4 v2, 0x0

    .line 423
    .local v2, ifc:Ljava/lang/Process;
    const-string v3, ""

    .line 425
    .local v3, line:Ljava/lang/String;
    :try_start_0
    invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

    move-result-object v4

    invoke-virtual {v4, p1}, Ljava/lang/Runtime;->exec(Ljava/lang/String;)Ljava/lang/Process;

    move-result-object v2

    .line 426
    new-instance v0, Ljava/io/BufferedReader;

    new-instance v4, Ljava/io/InputStreamReader;

    invoke-virtual {v2}, Ljava/lang/Process;->getInputStream()Ljava/io/InputStream;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v0, v4}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    .line 427
    .local v0, bis:Ljava/io/BufferedReader;
    invoke-virtual {v0}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v3

    .line 428
    invoke-virtual {v0}, Ljava/io/BufferedReader;->close()V

    .line 429
    invoke-virtual {v2}, Ljava/lang/Process;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v4

    invoke-virtual {v4}, Ljava/io/OutputStream;->close()V

    .line 430
    invoke-virtual {v2}, Ljava/lang/Process;->getErrorStream()Ljava/io/InputStream;

    move-result-object v4

    invoke-virtual {v4}, Ljava/io/InputStream;->close()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 435
    .end local v0           #bis:Ljava/io/BufferedReader;
    :goto_0
    :try_start_1
    invoke-virtual {v2}, Ljava/lang/Process;->waitFor()I

    move-result v4

    if-eqz v4, :cond_0

    .line 436
    const-string v4, "TetheringProvision"

    const-string v5, "ifc.waitFor is failed"

    invoke-static {v4, v5}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_1

    .line 441
    :cond_0
    :goto_1
    return-object v3

    .line 431
    :catch_0
    move-exception v1

    .line 432
    .local v1, e:Ljava/io/IOException;
    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0

    .line 437
    .end local v1           #e:Ljava/io/IOException;
    :catch_1
    move-exception v1

    .line 439
    .local v1, e:Ljava/lang/InterruptedException;
    invoke-virtual {v1}, Ljava/lang/InterruptedException;->printStackTrace()V

    goto :goto_1
.end method

.method private getAllColumnNames([Ljava/lang/String;)Ljava/lang/String;
    .locals 6
    .parameter "columnNames"

    .prologue
    .line 707
    const-string v0, "Column Names:\n"

    .line 708
    .local v0, s:Ljava/lang/String;
    array-length v3, p1

    const/4 v2, 0x0

    :goto_0
    if-lt v2, v3, :cond_0

    .line 711
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, "\n"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    return-object v2

    .line 708
    :cond_0
    aget-object v1, p1, v2

    .line 709
    .local v1, t:Ljava/lang/String;
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, ":\t"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 708
    add-int/lit8 v2, v2, 0x1

    goto :goto_0
.end method

.method private printAllData(Landroid/database/Cursor;)Ljava/lang/String;
    .locals 10
    .parameter "c"

    .prologue
    .line 722
    if-nez p1, :cond_1

    .line 723
    const/4 v5, 0x0

    .line 744
    :cond_0
    :goto_0
    return-object v5

    .line 724
    :cond_1
    const-string v5, ""

    .line 725
    .local v5, s:Ljava/lang/String;
    invoke-interface {p1}, Landroid/database/Cursor;->getColumnCount()I

    move-result v3

    .line 726
    .local v3, record_cnt:I
    const-string v6, "TetheringProvision"

    new-instance v7, Ljava/lang/StringBuilder;

    const-string v8, "Total # of records: "

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 728
    invoke-interface {p1}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v6

    if-eqz v6, :cond_0

    .line 729
    invoke-interface {p1}, Landroid/database/Cursor;->getColumnNames()[Ljava/lang/String;

    move-result-object v1

    .line 730
    .local v1, columnNames:[Ljava/lang/String;
    const-string v6, "TetheringProvision"

    invoke-direct {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getAllColumnNames([Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-static {v6, v7}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 731
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-direct {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getAllColumnNames([Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 733
    :cond_2
    const-string v4, ""

    .line 734
    .local v4, row:Ljava/lang/String;
    array-length v7, v1

    const/4 v6, 0x0

    :goto_1
    if-lt v6, v7, :cond_3

    .line 738
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, "\n"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 739
    const-string v6, "TetheringProvision"

    invoke-static {v6, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 740
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 741
    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v6

    .line 732
    if-nez v6, :cond_2

    .line 742
    const-string v6, "TetheringProvision"

    const-string v7, "End Of Records"

    invoke-static {v6, v7}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 734
    :cond_3
    aget-object v0, v1, v6

    .line 735
    .local v0, columnIndex:Ljava/lang/String;
    invoke-interface {p1, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    .line 736
    .local v2, i:I
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, ":\t"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 734
    add-int/lit8 v6, v6, 0x1

    goto :goto_1
.end method

.method private sendResult(I)V
    .locals 0
    .parameter "ResultCode"

    .prologue
    .line 416
    iput p1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mResultCode:I

    .line 417
    invoke-virtual {p0, p1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->setResult(I)V

    .line 418
    return-void
.end method

.method private showInsertSIMNotification()V
    .locals 2

    .prologue
    .line 1037
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowInsertSIMPopup;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 1038
    .local v0, mNotificationDialogIntent:Landroid/content/Intent;
    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 1039
    const/high16 v1, 0x80

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 1040
    invoke-virtual {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->startActivity(Landroid/content/Intent;)V

    .line 1041
    return-void
.end method

.method private showRollingNotificationATT()V
    .locals 12

    .prologue
    const v7, 0x7f030003

    const/4 v11, 0x2

    const/4 v10, 0x1

    const/4 v9, 0x0

    const/4 v8, -0x1

    .line 941
    invoke-direct {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->GetTopActivitiyName()Ljava/lang/String;

    move-result-object v5

    const-string v6, "TetheringProvisionActivity"

    invoke-virtual {v5, v6}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v5

    if-eq v5, v8, :cond_0

    .line 942
    new-instance v1, Landroid/content/Intent;

    const-class v5, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowNotificationDialogATT;

    invoke-direct {v1, p0, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 943
    .local v1, mNotificationDialogIntent:Landroid/content/Intent;
    const/high16 v5, 0x1000

    invoke-virtual {v1, v5}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 944
    const/high16 v5, 0x80

    invoke-virtual {v1, v5}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 945
    invoke-virtual {p0, v1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->startActivity(Landroid/content/Intent;)V

    .line 979
    .end local v1           #mNotificationDialogIntent:Landroid/content/Intent;
    :goto_0
    return-void

    .line 947
    :cond_0
    const-string v5, "TetheringProvision"

    const-string v6, "TopActivity is not a TetheringProvisionActivity"

    invoke-static {v5, v6}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 948
    invoke-virtual {p0, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 950
    .local v4, text:Ljava/lang/CharSequence;
    const-string v5, "tetherchoicetype"

    invoke-static {p0, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getIntFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)I

    move-result v2

    .line 951
    .local v2, mTetherType:I
    if-ne v2, v8, :cond_3

    .line 952
    invoke-virtual {p0, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 961
    :cond_1
    :goto_1
    new-instance v3, Landroid/app/Notification;

    const v5, 0x1080078

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6

    invoke-direct {v3, v5, v4, v6, v7}, Landroid/app/Notification;-><init>(ILjava/lang/CharSequence;J)V

    .line 962
    .local v3, notification:Landroid/app/Notification;
    new-instance v5, Landroid/content/Intent;

    const-class v6, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowNotificationDialogATT;

    invoke-direct {v5, p0, v6}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-static {p0, v9, v5, v9}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v0

    .line 967
    .local v0, contentIntent:Landroid/app/PendingIntent;
    const-string v5, "tetherchoicetype"

    invoke-static {p0, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getIntFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)I

    move-result v2

    .line 968
    if-ne v2, v8, :cond_6

    .line 969
    const v5, 0x7f030004

    invoke-virtual {p0, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, p0, v5, v4, v0}, Landroid/app/Notification;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V

    .line 977
    :cond_2
    :goto_2
    sget-object v5, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mNM:Landroid/app/NotificationManager;

    const v6, 0x7cf2eaa4

    invoke-virtual {v5, v6, v3}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    goto :goto_0

    .line 953
    .end local v0           #contentIntent:Landroid/app/PendingIntent;
    .end local v3           #notification:Landroid/app/Notification;
    :cond_3
    if-nez v2, :cond_4

    .line 954
    const v5, 0x7f03000e

    invoke-virtual {p0, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    goto :goto_1

    .line 955
    :cond_4
    if-ne v2, v10, :cond_5

    .line 956
    const v5, 0x7f03000b

    invoke-virtual {p0, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    goto :goto_1

    .line 957
    :cond_5
    if-ne v2, v11, :cond_1

    .line 958
    const v5, 0x7f030011

    invoke-virtual {p0, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    goto :goto_1

    .line 970
    .restart local v0       #contentIntent:Landroid/app/PendingIntent;
    .restart local v3       #notification:Landroid/app/Notification;
    :cond_6
    if-nez v2, :cond_7

    .line 971
    const v5, 0x7f03000f

    invoke-virtual {p0, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, p0, v5, v4, v0}, Landroid/app/Notification;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V

    goto :goto_2

    .line 972
    :cond_7
    if-ne v2, v10, :cond_8

    .line 973
    const v5, 0x7f03000c

    invoke-virtual {p0, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, p0, v5, v4, v0}, Landroid/app/Notification;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V

    goto :goto_2

    .line 974
    :cond_8
    if-ne v2, v11, :cond_2

    .line 975
    const v5, 0x7f030012

    invoke-virtual {p0, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, p0, v5, v4, v0}, Landroid/app/Notification;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V

    goto :goto_2
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 11
    .parameter "savedInstanceState"

    .prologue
    const/4 v10, 0x3

    const/4 v9, 0x2

    const/4 v8, 0x0

    const/4 v7, -0x1

    const/4 v6, 0x1

    .line 155
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 157
    const-string v3, "power"

    invoke-virtual {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/os/PowerManager;

    sput-object v3, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->pm:Landroid/os/PowerManager;

    .line 160
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getWindow()Landroid/view/Window;

    move-result-object v3

    const/16 v4, 0x80

    invoke-virtual {v3, v4}, Landroid/view/Window;->addFlags(I)V

    .line 163
    :try_start_0
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v3

    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getPackageName()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v3

    iget-object v1, v3, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

    .line 164
    .local v1, mVersionName:Ljava/lang/String;
    const-string v3, "TetheringProvision"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "Starting the activity of tethering provision of "

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, " version"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 169
    .end local v1           #mVersionName:Ljava/lang/String;
    :goto_0
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const-string v4, "startcause"

    invoke-virtual {v3, v4, v8}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v3

    iput v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mStartCause:I

    .line 170
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const-string v4, "type"

    invoke-virtual {v3, v4, v7}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v3

    iput v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    .line 172
    const-string v3, "TetheringProvision"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "onCreate() mStartFromService : "

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v5, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mStartCause:I

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 173
    const-string v3, "TetheringProvision"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "onCreate() mGetTetherType : "

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v5, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 175
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v3

    const-string v4, "airplane_mode_on"

    invoke-static {v3, v4, v8}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v3

    if-ne v3, v6, :cond_0

    .line 176
    const-string v3, "TetheringProvision"

    const-string v4, "Service terminating for airplane mode"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 177
    invoke-direct {p0, v8}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->sendResult(I)V

    .line 178
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->finish()V

    .line 277
    :goto_1
    return-void

    .line 165
    :catch_0
    move-exception v0

    .line 166
    .local v0, e:Landroid/content/pm/PackageManager$NameNotFoundException;
    invoke-virtual {v0}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    goto :goto_0

    .line 179
    .end local v0           #e:Landroid/content/pm/PackageManager$NameNotFoundException;
    :cond_0
    const-string v3, "getprop TetheringManager.disable"

    invoke-direct {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->execCommand(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v3

    if-nez v3, :cond_1

    .line 180
    const-string v3, "TetheringProvision"

    const-string v4, "Service terminating for TETHERINGPROPERTY 1............"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 181
    invoke-direct {p0, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->sendResult(I)V

    .line 182
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->finish()V

    goto :goto_1

    .line 184
    :cond_1
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v3

    iput-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mContentResolver:Landroid/content/ContentResolver;

    .line 185
    iget-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mContentResolver:Landroid/content/ContentResolver;

    const-string v4, "TETHER_ALWAYS_ON_MODE"

    invoke-static {v3, v4}, Landroid/provider/Settings$System;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_2

    .line 186
    iget-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mContentResolver:Landroid/content/ContentResolver;

    const-string v4, "TETHER_ALWAYS_ON_MODE"

    invoke-static {v3, v4}, Landroid/provider/Settings$System;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "enabled"

    invoke-virtual {v3, v4}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v3

    if-nez v3, :cond_2

    .line 187
    iput-boolean v6, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mDetectedTetheringAlwaysOn:Z

    .line 188
    const-string v3, "TetheringProvision"

    const-string v4, "Detected tethering always on mode"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 189
    invoke-direct {p0, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->sendResult(I)V

    .line 190
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->finish()V

    goto :goto_1

    .line 195
    :cond_2
    const-string v3, "phone"

    invoke-virtual {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/telephony/TelephonyManager;

    iput-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTelephonyManager:Landroid/telephony/TelephonyManager;

    .line 196
    const-string v3, "connectivity"

    invoke-virtual {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/net/ConnectivityManager;

    iput-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mConnectivityManager:Landroid/net/ConnectivityManager;

    .line 198
    iget v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mStartCause:I

    if-nez v3, :cond_8

    .line 200
    const-string v3, "tetherchoicetype"

    iget v4, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    invoke-static {p0, v3, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;I)V

    .line 203
    const-string v3, "wifi"

    invoke-virtual {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/net/wifi/WifiManager;

    .line 204
    .local v2, mWifiManager:Landroid/net/wifi/WifiManager;
    iget v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    if-nez v3, :cond_3

    invoke-virtual {v2}, Landroid/net/wifi/WifiManager;->getWifiState()I

    move-result v3

    if-ne v3, v10, :cond_3

    .line 205
    const-string v3, "wifisavedstate"

    invoke-static {p0, v3, v6}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 206
    const-string v3, "TetheringProvision"

    const-string v4, "Wifi prev-state save"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 209
    :cond_3
    iget v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    if-ne v3, v6, :cond_5

    .line 210
    const-string v3, "activenetworktype"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getIntFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)I

    move-result v3

    if-ne v3, v6, :cond_4

    .line 211
    const-string v3, "activenetworkisconnected"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_4

    .line 212
    const-string v3, "TetheringProvision"

    new-instance v4, Ljava/lang/StringBuilder;

    iget v5, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, ":"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "USBThruWifitether authentication is skipped."

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 213
    invoke-direct {p0, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->sendResult(I)V

    .line 214
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->finish()V

    goto/16 :goto_1

    .line 216
    :cond_4
    const-string v3, "activenetworktype"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getIntFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)I

    move-result v3

    const/4 v4, 0x7

    if-ne v3, v4, :cond_7

    .line 217
    const-string v3, "activenetworkisconnected"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_7

    .line 218
    const-string v3, "TetheringProvision"

    new-instance v4, Ljava/lang/StringBuilder;

    iget v5, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, ":"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "USBThruBTteher authentication is skipped."

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 219
    invoke-direct {p0, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->sendResult(I)V

    .line 220
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->finish()V

    goto/16 :goto_1

    .line 223
    :cond_5
    iget v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    if-nez v3, :cond_6

    const-string v3, "activenetworktype"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getIntFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)I

    move-result v3

    const/4 v4, 0x7

    if-ne v3, v4, :cond_6

    .line 224
    const-string v3, "activenetworkisconnected"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_6

    .line 225
    const-string v3, "TetheringProvision"

    new-instance v4, Ljava/lang/StringBuilder;

    iget v5, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, ":"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "MobileApThruBTtether authentication is skipped."

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 226
    invoke-direct {p0, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->sendResult(I)V

    .line 227
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->finish()V

    goto/16 :goto_1

    .line 229
    :cond_6
    iget v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    if-ne v3, v9, :cond_7

    const-string v3, "activenetworktype"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getIntFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)I

    move-result v3

    if-ne v3, v6, :cond_7

    .line 230
    const-string v3, "activenetworkisconnected"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_7

    .line 231
    const-string v3, "TetheringProvision"

    new-instance v4, Ljava/lang/StringBuilder;

    iget v5, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, ":"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "BTThruWifitehter authentication is skipped."

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 232
    invoke-direct {p0, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->sendResult(I)V

    .line 233
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->finish()V

    goto/16 :goto_1

    .line 238
    :cond_7
    iget v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    if-ne v3, v9, :cond_8

    .line 239
    const-string v3, "TetheringProvision"

    const-string v4, "BTTethering authentication is skipped."

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 240
    invoke-direct {p0, v7}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->sendResult(I)V

    .line 241
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->finish()V

    goto/16 :goto_1

    .line 246
    .end local v2           #mWifiManager:Landroid/net/wifi/WifiManager;
    :cond_8
    iget-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTelephonyManager:Landroid/telephony/TelephonyManager;

    invoke-virtual {v3}, Landroid/telephony/TelephonyManager;->getSimState()I

    move-result v3

    if-eqz v3, :cond_9

    iget-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mTelephonyManager:Landroid/telephony/TelephonyManager;

    invoke-virtual {v3}, Landroid/telephony/TelephonyManager;->getSimState()I

    move-result v3

    if-ne v3, v6, :cond_a

    .line 247
    :cond_9
    invoke-direct {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->showInsertSIMNotification()V

    .line 248
    const-string v3, "TetheringProvision"

    const-string v4, "SimState is UNKWOWN or ABSENT"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 249
    invoke-direct {p0, v8}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->sendResult(I)V

    .line 250
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->finish()V

    goto/16 :goto_1

    .line 255
    :cond_a
    iget v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mStartCause:I

    if-ne v3, v9, :cond_e

    .line 256
    const-string v3, "usbtethered"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_c

    .line 257
    const-string v3, "tetherchoicetype"

    invoke-static {p0, v3, v6}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;I)V

    .line 272
    :cond_b
    :goto_2
    const-string v3, "notification"

    invoke-virtual {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/app/NotificationManager;

    sput-object v3, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mNM:Landroid/app/NotificationManager;

    .line 274
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->setPreventScreenRotation()V

    .line 275
    iget-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mProviderDetectHandler:Landroid/os/Handler;

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto/16 :goto_1

    .line 258
    :cond_c
    const-string v3, "mobileaptethered"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_d

    .line 259
    const-string v3, "tetherchoicetype"

    invoke-static {p0, v3, v8}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;I)V

    goto :goto_2

    .line 260
    :cond_d
    const-string v3, "bluetoothtethered"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_b

    .line 261
    const-string v3, "tetherchoicetype"

    invoke-static {p0, v3, v9}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;I)V

    goto :goto_2

    .line 262
    :cond_e
    iget v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mStartCause:I

    if-ne v3, v6, :cond_10

    .line 263
    const-string v3, "usbthruwifitethered"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_f

    .line 264
    const-string v3, "tetherchoicetype"

    invoke-static {p0, v3, v6}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;I)V

    goto :goto_2

    .line 265
    :cond_f
    const-string v3, "btthruwifihtethered"

    invoke-static {p0, v3}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_b

    .line 266
    const-string v3, "tetherchoicetype"

    invoke-static {p0, v3, v9}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;I)V

    goto :goto_2

    .line 267
    :cond_10
    iget v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mStartCause:I

    if-ne v3, v10, :cond_b

    .line 268
    const-string v3, "tetherchoicetype"

    invoke-static {p0, v3, v9}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;I)V

    goto :goto_2
.end method

.method public onDestroy()V
    .locals 5

    .prologue
    const/4 v4, 0x1

    const/4 v3, -0x1

    const/4 v2, 0x0

    .line 294
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 296
    invoke-direct {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->GetTopActivitiyName()Ljava/lang/String;

    move-result-object v0

    const-string v1, "TetheringProvisionActivity"

    invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-ne v0, v3, :cond_0

    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mStartCause:I

    if-nez v0, :cond_0

    .line 297
    sget-boolean v0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mCancelVerification:Z

    if-nez v0, :cond_0

    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mResultCode:I

    if-ne v0, v3, :cond_0

    .line 298
    const-string v0, "TetheringProvision"

    const-string v1, "After entering the onStop() Authhentication results is RESULT_OK"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 299
    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    if-nez v0, :cond_c

    .line 300
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getWifiApConfiguration(Landroid/content/Context;)Landroid/net/wifi/WifiConfiguration;

    move-result-object v0

    invoke-static {p0, v0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setWifiApEnabled(Landroid/content/Context;Landroid/net/wifi/WifiConfiguration;Z)Z

    .line 308
    :cond_0
    :goto_0
    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mStartCause:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_3

    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mResultCode:I

    if-eq v0, v3, :cond_3

    .line 309
    const-string v0, "usbtethered"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 310
    invoke-static {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setUsbTethering(Landroid/content/Context;Z)Z

    .line 311
    :cond_1
    const-string v0, "mobileaptethered"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 312
    const-string v0, "mobileaptetheredinterfacename"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getStringFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setUntether(Landroid/content/Context;Ljava/lang/String;)Z

    .line 313
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getWifiApConfiguration(Landroid/content/Context;)Landroid/net/wifi/WifiConfiguration;

    move-result-object v0

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setWifiApEnabled(Landroid/content/Context;Landroid/net/wifi/WifiConfiguration;Z)Z

    .line 315
    const-string v0, "wifisavedstate"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 316
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->enableWifi(Landroid/content/Context;)V

    .line 317
    const-string v0, "wifisavedstate"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 320
    :cond_2
    const-string v0, "bluetoothtethered"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 321
    const-string v0, "bttetheredinterfacename"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getStringFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setUntether(Landroid/content/Context;Ljava/lang/String;)Z

    .line 325
    :cond_3
    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mStartCause:I

    if-ne v0, v4, :cond_6

    .line 326
    const-string v0, "usbthruwifitethered"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 327
    const-string v0, "usbthruwifitethered"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 328
    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mResultCode:I

    if-ne v0, v3, :cond_4

    .line 329
    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setUsbTethering(Landroid/content/Context;Z)Z

    .line 332
    :cond_4
    const-string v0, "btthruwifihtethered"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 333
    const-string v0, "btthruwifihtethered"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 334
    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mResultCode:I

    if-ne v0, v3, :cond_5

    .line 335
    const-string v0, "bttetheredinterfacename"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getStringFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setTether(Landroid/content/Context;Ljava/lang/String;)Z

    .line 338
    :cond_5
    const-string v0, "wifitetherverifying"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 341
    :cond_6
    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mStartCause:I

    const/4 v1, 0x3

    if-ne v0, v1, :cond_7

    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mResultCode:I

    if-ne v0, v3, :cond_7

    .line 342
    const-string v0, "bttetherverified"

    invoke-static {p0, v0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 343
    const-string v0, "bttetheredinterfacename"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getStringFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setTether(Landroid/content/Context;Ljava/lang/String;)Z

    .line 346
    :cond_7
    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mStartCause:I

    const/4 v1, 0x4

    if-ne v0, v1, :cond_9

    .line 347
    const-string v0, "usbthrubttethered"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_d

    .line 348
    const-string v0, "usbthrubttethered"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 350
    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mResultCode:I

    if-ne v0, v3, :cond_8

    .line 351
    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setUsbTethering(Landroid/content/Context;Z)Z

    .line 364
    :cond_8
    :goto_1
    const-string v0, "bttetherverifying"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 367
    :cond_9
    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mResultCode:I

    if-ne v0, v3, :cond_f

    .line 368
    const-string v0, "TetheringProvision"

    const-string v1, "setResult is set as RESULT_OK"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 372
    :goto_2
    iget-boolean v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mRunProviderDetectThread:Z

    if-eqz v0, :cond_a

    .line 373
    iget-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mProviderDetectHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mProviderDetectThread:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 374
    :cond_a
    iget-boolean v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mRunAuthenticationThread:Z

    if-eqz v0, :cond_b

    .line 375
    iget-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mAuthenticationHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mCheckMultiPDPAuthenticationThread:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 383
    :cond_b
    const-string v0, "TetheringProvision"

    const-string v1, "Activity is destroyed"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 384
    return-void

    .line 302
    :cond_c
    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mGetTetherType:I

    if-ne v0, v4, :cond_0

    .line 303
    invoke-static {p0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setUsbTethering(Landroid/content/Context;Z)Z

    goto/16 :goto_0

    .line 354
    :cond_d
    const-string v0, "mobileapthrubttethered"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    .line 356
    iget v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mResultCode:I

    if-ne v0, v3, :cond_e

    .line 357
    const-string v0, "mobileaptetheredinterfacename"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getStringFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setTether(Landroid/content/Context;Ljava/lang/String;)Z

    .line 358
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getWifiApConfiguration(Landroid/content/Context;)Landroid/net/wifi/WifiConfiguration;

    move-result-object v0

    invoke-static {p0, v0, v4}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->setWifiApEnabled(Landroid/content/Context;Landroid/net/wifi/WifiConfiguration;Z)Z

    goto :goto_1

    .line 359
    :cond_e
    const-string v0, "wifisavedstate"

    invoke-static {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->getBooleanFromSharedPreference(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_8

    .line 360
    invoke-static {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->enableWifi(Landroid/content/Context;)V

    .line 361
    const-string v0, "wifisavedstate"

    invoke-static {p0, v0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionUtils;->putSharedPreference(Landroid/content/Context;Ljava/lang/String;Z)V

    goto :goto_1

    .line 370
    :cond_f
    const-string v0, "TetheringProvision"

    const-string v1, "setResult is set as RESULT_CANCELED"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_2
.end method

.method public onStop()V
    .locals 2

    .prologue
    .line 281
    invoke-super {p0}, Landroid/app/Activity;->onStop()V

    .line 282
    const-string v0, "TetheringProvision"

    const-string v1, "Activity is onStop "

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 283
    sget-object v0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->pm:Landroid/os/PowerManager;

    invoke-virtual {v0}, Landroid/os/PowerManager;->isScreenOn()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 285
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->finish()V

    .line 286
    const-string v0, "TetheringProvision"

    const-string v1, "Users do not click the Cancel button to skip shutdown function."

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 290
    :goto_0
    return-void

    .line 289
    :cond_0
    const-string v0, "TetheringProvision"

    const-string v1, "skip the call the finish function cause the screen is currently off"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method

.method public setPreventScreenRotation()V
    .locals 3

    .prologue
    .line 393
    const-string v2, "window"

    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/WindowManager;

    .line 394
    .local v1, wm:Landroid/view/WindowManager;
    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    .line 395
    .local v0, display:Landroid/view/Display;
    invoke-virtual {v0}, Landroid/view/Display;->getOrientation()I

    move-result v2

    packed-switch v2, :pswitch_data_0

    .line 412
    :goto_0
    return-void

    .line 397
    :pswitch_0
    const/4 v2, 0x1

    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->setRequestedOrientation(I)V

    goto :goto_0

    .line 401
    :pswitch_1
    const/16 v2, 0x9

    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->setRequestedOrientation(I)V

    goto :goto_0

    .line 405
    :pswitch_2
    const/4 v2, 0x0

    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->setRequestedOrientation(I)V

    goto :goto_0

    .line 409
    :pswitch_3
    const/16 v2, 0x8

    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->setRequestedOrientation(I)V

    goto :goto_0

    .line 395
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
        :pswitch_3
    .end packed-switch
.end method
